package com.ll.wechat.friends.utils;

import com.ll.wechat.R;

import android.content.Context;
import android.view.ActionProvider;
import android.view.SubMenu;
import android.view.View;

/**
 * 主页面ActionBar中的添加按钮下拉菜单
 * 
 * @ClassName: MenuMainActionAdd
 * @author yeliangliang
 * @date 2015-7-29 下午5:22:01
 */
public class MenuInfoActionMore extends ActionProvider {
	
	public MenuInfoActionMore(Context context) {
		super(context);
	}

	@Override
	public View onCreateActionView() {
		return null;
	}

	@Override
	public void onPrepareSubMenu(SubMenu subMenu) {
		super.onPrepareSubMenu(subMenu);
		subMenu.clear();
		subMenu.add("发起群聊").setIcon(R.drawable.icon_action_add_chat);
		subMenu.add("添加朋友").setIcon(R.drawable.icon_action_add_friends);
		subMenu.add("扫一扫").setIcon(R.drawable.icon_action_add_saosao);
		subMenu.add("收钱").setIcon(R.drawable.icon_action_add_money);
		subMenu.add("帮助与反馈").setIcon(R.drawable.icon_action_add_help);
	}

	@Override
	public boolean hasSubMenu() {
		return true;
	}

}
